package com.leo;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.leo.base.init.CustomSplash;
import com.leo.view.DemoStageView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.stage.Stage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * @author wangss
 */
@SpringBootApplication(exclude = {DruidDataSourceAutoConfigure.class})
@ImportResource("classpath:spring/applicationContext.xml")
@Slf4j
public class LeoSpringbootJavafxApplication extends AbstractJavaFxApplicationSupport {

    public static void main(String[] args) {
        launch(LeoSpringbootJavafxApplication.class, DemoStageView.class, new CustomSplash(), args);
    }

    @Override
    public void start(Stage stage) throws Exception {
        super.start(stage);
    }
}
